/*
 * 
 * LegendShop 多用户商城系统
 * 
 *  版权所有,并保留所有权利。
 * 
 */
package com.legendshop.oa.dao;
 
import java.util.List;

import com.legendshop.dao.Dao;
import com.legendshop.dao.support.CriteriaQuery;
import com.legendshop.dao.support.PageSupport;
import com.legendshop.oa.model.Customer;

/**
 * The Class CustomerDao.
 * Dao接口
 */
public interface CustomerDao extends Dao<Customer, Long> {
	/**
	 *  根据商城获取列表
	 */
    public abstract List<Customer> getCustomer(String shopName);

   	/**
	 *  根据Id获取
	 */
	public abstract Customer getCustomer(Long id);
	
   /**
	 *  删除
	 */
    public abstract int deleteCustomer(Customer customer);
    
   /**
	 *  保存
	 */	
	public abstract Long saveCustomer(Customer customer);

   /**
	 *  更新
	 */		
	public abstract int updateCustomer(Customer customer);
	
   /**
	 *  查询列表
	 */		
	public abstract PageSupport getCustomer(CriteriaQuery cq);
	
 }
